<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>jQuery基础——01</title>
    <script src="jquery-3.5.1/jquery-3.5.1/jquery-3.5.1.js"></script>
    <script language="javascript">
        // 文档就绪函数
        /* 写法一
        jQuery(document).ready(function()
        {
            jQuery("div span").css("color","red");
            jQuery("div span").css("font-size","20px");
        });
        */
       //写法二
        $(function()
        {
            jQuery("div span").css("color","blue");
            jQuery("div span").css("font-size","20px");
        });
    </script>
</head>
<body>
    <div>
        <span>jQuery</span>是一个兼容多浏览器的 JavaScript 框架，核心理念是 -write less,do more;
    </div>
</body>
</html>